package Excle.GenerateExcelFile;

import lombok.Getter;

/**
 * @author yangjicong
 * @date 2022/1/19
 *
 * 异常工具类
 */
@Getter
public class BusinessException extends RuntimeException{


    private static final long serialVersionUID = -6724091726367556590L;

    private final String errorCode;

    public BusinessException(String errorCode) {
        this.errorCode = errorCode;
    }

    public BusinessException(String errorCode, String message) {
        super(message);
        this.errorCode = errorCode;
    }
}
